package com.fwj.auth.config.handle;

import com.fwj.core.common.common.CommonUtils;
import com.fwj.core.common.common.CookieUtil;
import com.fwj.core.common.common.RedisUtil;
import com.fwj.core.common.constant.CoreConstant;
import com.fwj.core.common.execption.CommonException;
import com.fwj.core.common.model.DataBuriedPointLogBean;
import com.fwj.core.common.model.ResponseDTO;
import com.fwj.core.common.model.ResponseEnum;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.security.core.Authentication;
import org.springframework.security.web.authentication.logout.LogoutSuccessHandler;
import org.springframework.stereotype.Component;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @Author: fwj
 * @Data: 2022/2/20 21:25
 * @Version 1.0
 * @Description:
 */

@Component
public class AuthLogoutSuccessHandle implements LogoutSuccessHandler {

    //添加日志工厂
    private static final Logger LOGGER = LoggerFactory.getLogger(AuthLogoutSuccessHandle.class);

    @Override
    public void onLogoutSuccess(HttpServletRequest request, HttpServletResponse resp, Authentication authentication) throws IOException, ServletException {
        //自定义
    }

}
